﻿@{
    ViewBag.Title = "SelectUser";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<section id="content" role="main">
        
    <header>
        <h1>User Picker</h1>
    </header>
    <div class="content-container">
        <div class="content-body aui-panel">
            
                <script type="text/javascript">
                    function select(value) {
                        opener.AJS.$('#' + AJS.$.trim(AJS.$("#openElement").text())).val(value).change();
                        window.close();
                    }
                </script>
                






<form action="UserPickerBrowser.jspa"
      class="aui top-label ajs-dirty-warning-exempt"
      
      id="user-picker-popup"
      method="post">
    <div class="form-body">
        
        
        
        
        
        
                    
                    
                    
                    
                    
                        <div class="aui-group">
                            <div class="aui-item">
                                




<div class="field-group">
    
                                    





    
        <label for="user-picker-popup-nameFilter">Full Name Contains</label>
    

<input 
    class="text
    
        
        
        
        
    
    full-width"
    
    
        id="user-picker-popup-nameFilter"
    
    
        maxlength="255"
    
    name="nameFilter"
    
    
        
    
    
        
    
    type="text"
    
        
    
    
        
    
/>






    





     


    

                                
    
</div>
                            </div>
                            <div class="aui-item">
                                
                                    




<div class="field-group">
    
                                        





    
        <label for="user-picker-popup-emailFilter">Email Contains</label>
    

<input 
    class="text
    
        
        
        
        
    
    full-width"
    
    
        id="user-picker-popup-emailFilter"
    
    
        maxlength="255"
    
    name="emailFilter"
    
    
        
    
    
        
    
    type="text"
    
        
    
    
        
    
/>






    





     


    

                                    
    
</div>
                                
                            </div>
                        </div>
                        <div class="aui-group">
                            <div class="aui-item">
                                




<div class="field-group">
    
                                    




    
        <label for="user-picker-popup-groups">In Group</label>
    

<select 
    class="select
    
        
        
        
        
    
    full-width"
    
        
    
    
    
        id="user-picker-popup-groups"
    
    
        
    
    name="group"
    
    
        
    
    
        
    
    type="text"
    
        
    >
    
        
            <option value="">
                Any
            </option>
        
    
    
    
    
    
    
        <option 
                
                
                
                value="Angel Group"
                >
        
        Angel Group
        </option>
    
        <option 
                
                
                
                value="jira-administrators"
                >
        
        jira-administrators
        </option>
    
        <option 
                
                
                
                value="jira-developers"
                >
        
        jira-developers
        </option>
    
        <option 
                
                
                
                value="jira-users"
                >
        
        jira-users
        </option>
    
</select>





    





     


    

                                
    
</div>
                            </div>
                            <div class="aui-item">
                                




<div class="field-group">
    
                                    




    
        <label for="user-picker-popup-usersPerPage">Users Per Page</label>
    

<select 
    class="select
    
        
        
        
        
    
    full-width"
    
        
    
    
    
        id="user-picker-popup-usersPerPage"
    
    
        
    
    name="max"
    
    
        
    
    
        
    
    type="text"
    
        
    >
    
        
    
    
    
    
    
    
        <option 
                
                
                
                value="10"
                >
        
        10
        </option>
    
        <option 
                
                 selected="selected"
                
                value="20"
                >
        
        20
        </option>
    
        <option 
                
                
                
                value="50"
                >
        
        50
        </option>
    
        <option 
                
                
                
                value="100"
                >
        
        100
        </option>
    
</select>





    





     


    

                                
    
</div>
                            </div>
                        </div>
                        


<div class="hidden"
     
            
     
    >
    <input
        
            
        
        
            name="formName"
        
        type="hidden"
        
            value="jiraform"
            
        
        
            
        
    />
</div>

                        


<div class="hidden"
     
            
     
    >
    <input
        
            
        
        
            name="element"
        
        type="hidden"
        
            value="usersToAssignStr"
            
        
        
            
        
    />
</div>

                        


<div class="hidden"
     
            
     
    >
    <input
        
            
        
        
            name="multiSelect"
        
        type="hidden"
        
            value="true"
            
        
        
            
        
    />
</div>

                        


<div class="hidden"
     
            
     
    >
    <input
        
            
        
        
            name="start"
        
        type="hidden"
        
            value="0"
            
        
        
            
        
    />
</div>

                        


<div class="hidden"
     
            
     
    >
    <input
        
            
        
        
            name="previouslySelected"
        
        type="hidden"
        
            value=""
            
        
        
            
        
    />
</div>

    </div>
    
    <div class="buttons-container form-footer">
        
        <div class="buttons">
            
                




<input
    
        accesskey="s"
    
    
        
        class="button"
    
    
    
        id="user-picker-popup-submit"
    
    
    name=""
    title="Press Alt+Shift+s to submit this form"
    type="submit"
    
        value="Filter"
        
    
    />

            
            
        </div>
    </div>
    
</form> <!-- // .aui.top-label ajs-dirty-warning-exempt #user-picker-popup -->

                <form class="selectorform" name="selectorform">
                    <div class="aui-group count-pagination">
                        <div class="results-count aui-item">
                            Displaying users <strong>1</strong> to <strong>3</strong> of <strong>3</strong>.
                        </div>
                        <div class="pagination aui-item">
                        </div>
                    </div>
                    <table class="aui aui-table-rowhover">
                        <thead>
                            <tr>
                                <th class="hidden"></th>
                            
                                <th width="1%"><input type="checkbox" name="all" onClick="setCheckboxes()"></th>
                            
                                <th>Username</th>
                                <th>Full Name</th>
                            
                                <th>Email</th>
                            
                            </tr>
                        </thead>
                        <tbody>
                        
                            <tr data-row-for="anhhoa" id="username_row_0" title="Click to select Bui Anh Hoa"  >
                            
                                <td data-cell-type="user-select"><input data-user-select="true"  type=checkbox name="userchecks" value="anhhoa" id="user_0" onclick="processCBClick(event, this);"/></td>
                                <td data-cell-type="name" class="user-name" onclick="toggleCheckBox(event, 'user_0')">anhhoa</td>
                                <td data-cell-type="fullname" onclick="toggleCheckBox(event, 'user_0')"><span id="user_fullname_0">Bui Anh Hoa</span></td>
                                <td data-cell-type="email" class="cell-type-email" onclick="toggleCheckBox(event, 'user_0')">anhhoa08T2@gmail.com</td>
                            </tr>
                        
                            <tr data-row-for="kingdomheartdl" id="username_row_1" title="Click to select Nguyen Van Hien"  >
                               
                                <td data-cell-type="user-select"><input data-user-select="true"  type=checkbox name="userchecks" value="kingdomheartdl" id="user_1" onclick="processCBClick(event, this);"/></td>
                                <td data-cell-type="name" class="user-name" onclick="toggleCheckBox(event, 'user_1')">kingdomheartdl</td>
                                <td data-cell-type="fullname" onclick="toggleCheckBox(event, 'user_1')"><span id="user_fullname_1">Nguyen Van Hien</span></td>
                                
                                    <td data-cell-type="email" class="cell-type-email" onclick="toggleCheckBox(event, 'user_1')">vanhienk208tt@gmail.com</td>
                                
                            
                            
                            </tr>
                        
                            <tr data-row-for="lac lim" id="username_row_2" title="Click to select Truong Thi Ba"  >
                                <td class="hidden" data-cell-type="user-info-hidden">
                                    <div id="username_2" value="lac lim" style="visibility: hidden"></div>
                                </td>
                            
                                <td data-cell-type="user-select"><input data-user-select="true"  type=checkbox name="userchecks" value="lac lim" id="user_2" onclick="processCBClick(event, this);"/></td>
                                <td data-cell-type="name" class="user-name" onclick="toggleCheckBox(event, 'user_2')">lac lim</td>
                                <td data-cell-type="fullname" onclick="toggleCheckBox(event, 'user_2')"><span id="user_fullname_2">Truong Thi Ba</span></td>
                                
                                    <td data-cell-type="email" class="cell-type-email" onclick="toggleCheckBox(event, 'user_2')">thiba.t208@gmail.com</td>
                            </tr>
                        
                        </tbody>
                    </table>
                    
                        <div class="buttons-container">
                            <input id="multiselect-submit" class="aui-button" type="submit" value="Select" onclick="selectUsers(AJS.$.trim(AJS.$('#openElement').text()), 'input[data-user-select]')">
                        </div>
                    
                </form>
                <ul id="params" style="display:none">
                    <li id="openElement">usersToAssignStr</li>
                </ul>
            
            
        </div>
    </div>

    </section>
